package com.ag.work.dao;

import java.util.List;

import org.apache.log4j.Logger;

import com.ag.dao.TbEventPlanDAO;

public class EventPlanDAO extends TbEventPlanDAO {

	private static final Logger log = Logger.getLogger(EventPlanDAO.class);
	
	public List findPStatusByEId(String EId){
		log.info("打印出：EId----" + EId);
		log.debug("getting TbEventPlan by id: " + EId);
		try {
			String hql = "select count(*) from TbEventPlan ep where ep.id.EId = ?";
			List result = getHibernateTemplate().find(hql, EId);
			log.info("result:------"+result);
			return result;
		} catch (RuntimeException re) {
			log.error("get failed", re);
			throw re;
		}
	}
}
